package org.dtrd.modules.service.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;


/**
 * <p>
 * 服务包规格配置
 * </p>
 *
 * @author xiao
 * @since 2022-06-20
 */
@Getter
@Setter
@TableName("dtrd_ent_rd_service_package_specs")
public class DtrdEntRdServicePackageSpecs {

    @TableId(value = "data_id", type = IdType.AUTO)
    private Integer dataId;

    /**
     * 服务包ID
     */
    @TableField("package_id")
    private Integer packageId;

    /**
     * 服务售卖状态, 1-正常, 0-暂停购买
     */
    @TableField("package_sale_state")
    private Integer packageSaleState;

    /**
     * 服务包规格配置
     */
    @TableField("package_specs")
    private String packageSpecs;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("is_del")
    @TableLogic
    private Integer isDel;

    public DtrdEntRdServicePackageSpecs init() {
        createTime = new Date();
        isDel = 0;
        return this;
    }

}
